package com.tensquare.chat;
/*
 *ClassName:ChatApplication
 *Description:聊天启动类 9016
 *@author:可爱的大鸭子
 */

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

import java.util.HashMap;
import java.util.Map;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
public class ChatApplication {
    public static void main(String[] args) {
        SpringApplication.run(ChatApplication.class, args);
    }
    //保存当前登录的用户列表
    public static Map<String,String> sessionMap=new HashMap<>();
    @Bean
    public IdWorker idWorkker(){
        return new IdWorker(1, 1);
    }
}
